<?php
error_reporting(E_ALL);

/*
 * DB setup
 */
define('DB_IP', 'localhost');                      
define('DB_NAME', '');
define('DB_USER', '');
define('DB_PASS', '');


define('WS_HOME_DIR', '');
define('FS_HOME_DIR', '');

// System images
define('CV', 'CV/');
define('CV_DIR', WS_HOME_DIR . CV);

define('APPS', 'apps/');
define('APPS_FS_DIR', FS_HOME_DIR . 'apps/');
define('APPS_WS_DIR', WS_HOME_DIR . 'apps/');

$api_key = "";

include 'classes/log.php';
Log::setLog('log/error.log', L_HI, false);

include 'classes/db.php';
include 'classes/http.php';
include 'classes/session.php';

include 'classes/hi5/hi5.php';
include 'classes/hi5/hi5Auth.php';
include 'classes/hi5/hi5Test.php';
include 'classes/hi5/hi5Profile.php';
include 'classes/hi5/hi5Feed.php';

include 'classes/app.php';
include 'classes/appVersion.php';
include 'classes/hackathon.php';
include 'classes/hacker.php';
include 'classes/openSocial.php';

switch(@$_GET['hl']) {
  case 'es':
    include 'languajes/es.php';
    break;
  case 'en':
  default:
    include 'languajes/en.php';
    break;
}


if(isset($_GET['myAppSid'])) {
  $myAppSid = $_GET['myAppSid'];
} else {
  $myAppSid = null;
}
$sess = new Session($myAppSid);
session_start();


